<?php

namespace Api\MemberServer\Models;

use Api\ModelExtTrait;
use Illuminate\Database\Eloquent\Model;

/**
 * 模型
 */
class Token extends Model
{
    use ModelExtTrait;

    /**
     * The connection name for the model.
     *
     * @var string
     */
    protected $connection = 'old_trade';

    /**
     * 当前表名
     */
    protected $table = 'ot_client_token';

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = false;

    /**
     * 数据校验规则
     * @var array
     */
    public $rules = [];

    /**
     * 强制字段类型
     * @var array
     */
    protected $casts = [];
    
    /**
     * 序列化输出白名单
     * The attributes that should be visible in serialization.
     *
     * @var array
     */
    protected $visible = [
        'id',
        'user_id',
        'token',
        'status',
    ];
    
/*
|--------------------------------------------------------------------------
| 访问器
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| 调整器
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| 拓展方法
|--------------------------------------------------------------------------
*/

/*
|--------------------------------------------------------------------------
| 拓展校验方法
|--------------------------------------------------------------------------
*/


}
